package com.example.qa_back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author 董帅
 * @date 2021/3/6 - 18:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "CollectQuestion") // 会自动映射为数据库中的collect_question
public class CollectQuestion {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String question;
}
